package design.pattern.creational.abstract_factroy_method;

public class Test {
    public static void main(String[] args) {
        {
            TCLFactory tclFactory = new TCLFactory();

            Television television = tclFactory.produceTV();
            television.play();

            AirConditioner airConditioner = tclFactory.produceAirConditioner();
            airConditioner.changeTemperature(25);
        }
        {
            HaierFactory haierFactory = new HaierFactory();

            Television television = haierFactory.produceTV();
            television.play();

            AirConditioner airConditioner = haierFactory.produceAirConditioner();
            airConditioner.changeTemperature(26);
        }

    }
}
